# -*- coding: utf-8 -*-
# @Time    : 2021/4/29 9:16
# @Author  : YAQIWE
# @File    : AMZGoodInfo.py
# @Software:  PyCharm
# @explain : 获取亚马逊产品信息

from amz_info import amz_info
import time
from util import logging

class AMZGoodInfo:

    def __init__(self,country='us'):
        self.chromeObj = amz_info()
        self.chromeObj.amzInfo(country)

    def getAllGoodUrl(self,seaName):
        time.sleep(5)
        logging.info('等待5秒手动设置页面状态')
        self.chromeObj.seaGood(seaName)
        urlList=self.chromeObj.getAllGoodUrl()
        return urlList

if __name__ == '__main__':
    a =AMZGoodInfo()
    urlList=a.getAllGoodUrl("PXN")
    print(urlList)
    time.sleep(1000)